$('.father .title').on('click',function (e){
    if($(this).parent().hasClass('fatheractive')){
        $(this).parent().removeClass('fatheractive')
        return
    }
    $('.father').removeClass('fatheractive')
    $(this).parent().addClass('fatheractive')
})

$('.pages .pagenumber').on('click',function(e) {
    $('.pages .pagenumber').removeClass('pageactive')
    $(this).addClass('pageactive')
})
$('.prve').on('click',function(){
    let that = $('.pages .pageactive')
    if(that.data('number') == 1){
        alert('已经是第一页了哦')
        return
    }
    $('.pages .pagenumber').removeClass('pageactive')
    that.prev().addClass('pageactive')
})
$('.next').on('click',function(){
    let that = $('.pages .pageactive')
    if(that.data('number') == 23){
        alert('最后一页啦')
        return
    }
    $('.pages .pagenumber').removeClass('pageactive')
    that.next().addClass('pageactive')
})

$('.workinput .studentradio').on('click',function(e) {
    $('.workinput .studentradio').children('.dian').removeClass('active')
    $(this).children('.dian').addClass('active')
})
$('.myselect').on('click',function(e){
    e.stopPropagation()
    if($(this).children('.selectvalue').hasClass('none')){
        $(this).children('.selectvalue').removeClass('none')
    }else{
        $(this).children('.selectvalue').addClass('none')
    }
})
$('document').on('click',function(){
    $('.myselect').children('.selectvalue').removeClass('none')
})
document.addEventListener('click',function(){
    $('.myselect').children('.selectvalue').addClass('none')
})
$('.myselect li').on('click',function(e){
    console.log($(this).html())
    $(this).parent().prev().html($(this).html())
})
$('.teamlist .min-button').on('click',function(){
    $('.mask').removeClass('none')
})
$('.mask .center-button').on('click',function(){
    $('.mask').addClass('none')
})